package top.infopub.mgr.bpa.service.impl;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.bpa.dao.InnerAgrtDetailDao;
import top.infopub.mgr.bpa.domain.InnerAgrtDetailAndSubDomain;
import top.infopub.model.bpa.InnerAgrtDetail;
import top.infopub.mgr.bpa.service.InnerAgrtDetailService;

@Service
public class InnerAgrtDetailServiceImpl extends GenericServiceImpl<InnerAgrtDetail, String> implements
		InnerAgrtDetailService {

	@Autowired
	private InnerAgrtDetailDao innerAgrtDetailDao;
	
	@Override
	public GenericDao<InnerAgrtDetail, String> getDao() {
		return innerAgrtDetailDao;
	}

    @Override
    public List<InnerAgrtDetail> selectInnerAgrtDetailByInnerAgrtId(String innerAgrtId) {
        return innerAgrtDetailDao.selectInnerAgrtDetailByInnerAgrtId(innerAgrtId);
    }

    @Override
    public List<InnerAgrtDetailAndSubDomain> selectByInnerAgrtId(String innerAgrtId) {
        return innerAgrtDetailDao.selectByInnerAgrtId(innerAgrtId);
    }

    @Override
    public BigDecimal selectRateFromInnerAgrt(Map<String, Object> where) {
        return innerAgrtDetailDao.selectRateFromInnerAgrt(where);
    }

}